package com.csu.jpetstore_cms.service;

import com.csu.jpetstore_cms.common.CommonResponse;
import com.csu.jpetstore_cms.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 朱嘉辉
* @description 针对表【merchant】的数据库操作Service
* @createDate 2024-03-30 10:37:52
*/
@Service("merchantService")
public interface MerchantService extends IService<Merchant> {

    CommonResponse<Merchant> addNewMerchant(Merchant merchant);
    CommonResponse<Merchant> login(String account, String password);
    CommonResponse<List<Merchant>> getAllMerchants();

}
